package com.gupaoedu.design.strategy.pro_single.factory.simple;

/**
 * <p></p>
 *
 * @author Andy
 * @date 2018/3/12.
 */
public class SimpleFactory {

    public void getMilkProduct(String name) {

        if ("erie".equals(name)) {
            System.out.println("采购伊利牛奶");
        } else if ("mengniu".equals(name)) {
            System.out.println("采购蒙牛牛奶");
        } else if ("guangming".equals(name)) {
            System.out.println("采购光明牛奶");
        } else {
            System.out.println("本工厂没有您要采购的牛奶");
        }
    }
}
